package com.gang.mars.aop.proxy.cglib.methodinterceptor;

import org.springframework.cglib.proxy.MethodProxy;

import java.lang.reflect.Method;

/**
 * 类说明：gang.chen springboot深度实践
 *
 * @author gang.chen
 * @since 2022/5/14
 */
public class GangDefaultMethodInterceptor implements GangMethodInterceptor {
    @Override
    public Object intercept(Object o, Method method, Object[] objects, MethodProxy methodProxy) throws Throwable {
        System.out.println("defalt before test1...");
        return methodProxy.invokeSuper(o, objects);
    }
}
